Filter hook 'get_the_generator_{$type}'
in WP Core File wp-includes/general-template.php at line 5066
Description
Filters the HTML for the retrieved generator type. The dynamic portion of the hook name, `$type`, refers to the generator type. Possible hook names include: - `get_the_generator_atom` - `get_the_generator_comment` - `get_the_generator_export` - `get_the_generator_html` - `get_the_generator_rdf` - `get_the_generator_rss2` - `get_the_generator_xhtml`
Occurrences
Filename |
Line Number |
wp-includes/general-template.php |
5066 |
Parameters
Type |
Name |
Description |
string |
$gen |
The HTML markup output to wp_head(). |
string |
$type |
The type of generator. Accepts 'html', 'xhtml', 'atom', 'rss2', 'rdf', 'comment', 'export'. |
PHP Doc
/**
* Filters the HTML for the retrieved generator type.
*
* The dynamic portion of the hook name, `$type`, refers to the generator type.
*
* Possible hook names include:
*
* - `get_the_generator_atom`
* - `get_the_generator_comment`
* - `get_the_generator_export`
* - `get_the_generator_html`
* - `get_the_generator_rdf`
* - `get_the_generator_rss2`
* - `get_the_generator_xhtml`
*
* @since 2.5.0
*
* @param string $gen The HTML markup output to wp_head().
* @param string $type The type of generator. Accepts 'html', 'xhtml', 'atom',
* 'rss2', 'rdf', 'comment', 'export'.
*/